package com.java.comprehensive.design.structural_model.composite_pattern;


abstract class MenuComponent {

    protected String name;
    protected int level;

    public void add(MenuComponent menuComponent) {
        throw new UnsupportedOperationException();
    }

    public void remove(MenuComponent menuComponent) {
        throw new UnsupportedOperationException();
    }

    public MenuComponent getChild(int index) {
        throw new UnsupportedOperationException();
    }

    public String getName(int index) {
        throw new UnsupportedOperationException();
    }

    public abstract void print();
}
